package com.yonyou.gmmc;


import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yonyou.gmmc.service.wechatpush.dto.WxGzMessageDto;

import net.sf.json.JSONObject;


/**
 * 启动类
 */
@EnableCircuitBreaker
@EnableHystrix
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
//@ComponentScan(basePackages = "com.yonyou")
public class WeChatPushApplication {
    /**
     * 启动main函数
     * @param args  启动桉树
     * @throws IOException 
     */
    public static void main(String[] args) throws IOException {
        SpringApplication.run(WeChatPushApplication.class, args);
    }
    
    @RequestMapping("/help")
    public String help() {
        return "redirect:swagger-ui.html";
    }
}
